<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../js/jquery-1.7.2.js"></script>
    <script type="text/javascript">
     $(function () {
        $("body").append($('<input type="button" value="点击一">'))
         $(":button").click(function () {
             alert("hello");
         });
        $("body").append('<input type="button" value="点击二">')
     });
    </script>
</head>
<body>
<input type="button" value="点击">
</body>
</html>